//
//  SGViewController.m
//  SemiGroup
//
//  Created by 陈无忌 on 12/9/15.
//  Copyright © 2015 陈无忌. All rights reserved.
//

#import "SGViewController.h"

@interface SGViewController ()<BackButtonHandlerProtocol>

@end

@implementation SGViewController

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
}

- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
}

- (void)viewDidDisappear:(BOOL)animated{
    [super viewDidDisappear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

//跳转登录
- (void)jumpToLogin{
    WS
    [UIAlertView showWithTitle:@"您还未登录" message:@"登录或注册以后才可以发起活动哦" cancelButtonTitle:@"去登录" otherButtonTitles:@[@"先不了"] tapBlock:^(UIAlertView * _Nonnull alertView, NSInteger buttonIndex) {
        if (buttonIndex == 0) {
            UINavigationController *targetVC = [weakSelf.storyboard instantiateViewControllerWithIdentifier:@"SGUserWindowNavigationController"];
            [weakSelf.navigationController presentViewController:targetVC animated:YES completion:nil];
        }
    }];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
